package br.unicamp.ic.lis.dbvapi.utils;

import static junit.framework.Assert.assertEquals;

import org.genericspatialdao.dao.DAO;

import br.unicamp.ic.lis.dbvapi.service.Service;

public class AssertUtils {

	public static void checkDB(DAO<?>... dao) {
		for (DAO<?> d : dao) {
			assertEquals(0, d.count());
		}
	}

	public static void checkDB(Service<?>... baseService) {
		for (Service<?> bs : baseService) {
			assertEquals(0, bs.getDAO().count());
		}
	}

}
